/**
 * 
 */
package de.probstl.core.dao.hibernate;

import java.util.List;

import org.appfuse.dao.hibernate.GenericDaoHibernate;
import org.springframework.beans.factory.annotation.Qualifier;

import de.probstl.core.Fuel;
import de.probstl.core.dao.FuelDao;

/**
 * Hibernate implementation of the FuelDao interface
 */
@Qualifier("fuelDao")
public class FuelDaoHibernate extends GenericDaoHibernate<Fuel, Long> implements
		FuelDao
{
	public FuelDaoHibernate()
	{
		super(Fuel.class);
	}

	@SuppressWarnings("unchecked")
	public List<Fuel> findEnabled()
	{
		String query = "from de.probstl.core.Fuel where enabled=1 order by name";
		return getHibernateTemplate().find(query);
	}
}
